c# char to int

83

c convert char to int -

int i = (int)(c - '0');

c# char to int -

char foo = '2';
int bar = foo - '0';

Comments

Submit
0 Comments